Skip to main content

Configuring LUIS Settings

Users need to connect to their LUIS Conversational app to use NLU capabilities. This section will provide a detailed description of how to conduct this configuration.

Prerequisites:

  1. User has an active and usable Microsoft LUIS account.
  2. User has access to Authoring API and Prediction API.
  3. User has an active and published (either Staging or Production) Conversational App.
note

In this section, it is assumed that the user will require access to Intents and Entities for further mapping, hence an Authoring Resource is either present in the user’s LUIS account or they have permission to create one.

To add LUIS settings to a newly created NLU project, the user must follow the following steps:

  1. Click on the menu ( img alt ) icon in the top right corner of the LUIS Setting card and then click "Add Settings" which will open a dialog facilitating the user to enter the required settings as shown below:

img alt

  1. Open the necessary Conversational app, then select the Manage tab in the upper-right corner of the window to access all the necessary values from the user's LUIS portal.

img alt

  1. Once you open the Manage tab, you will be able to fetch the required values from the following sub-menus:
AI Studio Input NameLUIS Sub-MenuValue in required Sub-Menu
End PointAzure ResourceAuthoring Resource -> Endpoint URL
Subscription KeySettingsAuthoring Resource -> Primary Key
App IdSettingsApp ID
App VersionVersions--
Prediction URLAzure ResourcePrediction Resources -> Example Query^
caution

^ Example Query string looks something like this: https://automationedgeluis.cognitiveservices.azure.com/luis/prediction/v3.0/apps/a8cfee08-9608-4ba4-af55-735d475a92d8/slots/staging/predict?verbose=true&show-all-intents=true&log=true&subscription-key=aa8fa721088e4a8d94650dfa2ee64a0f &query=YOUR_QUERY_HERE

The user must get rid of the highlighted text from the Example Query before adding the settings to their AI Studio NLU project. Failing to do so will result in prediction failure.

  1. Once the user has added all the values in the settings dialog, they can save these settings by clicking on the Add button.

  2. The add button will retrieve the required info from the LUIS Conversational app and add the required info to the user's NLU project. On the bottom left of the user's screen, a success message reading "LUISSettings created successfully!" should be displayed in green. In case of any issue, a failure message would be displayed in red. (For more details, see the Troubleshooting section.)

  3. Users can follow two simple steps to check if their AIStudio instance has been connected to their LUIS Conversational app as intended:
    a. Check if the AI Overview Panel reflects the correct numbers as per your LUIS Conversational app. All the numbers in this panel are 0 (zero) when you create a fresh project. b. Navigate to the Prediction sub-menu and try testing some utterances. If the users are getting expected Intent and Entity values in the JSON on the user’s right-hand side of the screen, then the prediction configuration is successfully configured.